home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.4 KB | 48 lines | [TEXT/GEOL] |
- Item 2152822 31-Oct-90 11:46PST
-
- From: PHAROS.TECH Pharos Tech, Tech Staff,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: RE: RE:GridView Selection Prob
-
- From: Schmitz, Scott D. on Wed, Oct 31, 1990 2:46 PM
- Subject: RE: RE:GridView Selection Problem
- To: MacApp
-
- I tried the suggested mod to TRowSelector.ComputeAnchorCell and
- TColumnSelector.ComputeAnchorCell with excellent success. Thanks! Shift
- clicking in columns and rows now works as it should.
-
- One thing I did do differently, was remove the line from both of the two
- procedures: clickedCell.h := 1; There were several side effects from that line
- such as the anchor became 1,1 more often than not. Below is the remodified
- code.
-
- Scott Schmitz
- Pharos
-
-
- Procedure TRowSelector.ComputeAnchorCell (Var clickedCell: GridCell);
- OVERRIDE;
- Begin
- Inherited ComputeAnchorCell(clickedCell);
- fAnchorCell.h := 1;
- fCellSelector.ComputeAnchorCell(clickedCell);
- fCellSelector.fAnchorCell.h := 1;
- fAnchorCell.v := fCellSelector.fAnchorCell.v;
- End;
-
-
- Procedure TColumnSelector.ComputeAnchorCell (Var clickedCell: GridCell);
- OVERRIDE;
- Begin
- Inherited ComputeAnchorCell(clickedCell);
- fAnchorCell.v := 1;
- fCellSelector.ComputeAnchorCell(clickedCell);
- fCellSelector.fAnchorCell.v := 1;
- fAnchorCell.h := fCellSelector.fAnchorCell.h;
- End;
-
-
-